package cn.soulic.tools.redis.migration.handler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * String数据处理
 *
 * @author Soulic Yang
 * @since 1.0.0
 */
@Component(value = "string")
public class StringHandler extends AbstractHandler {
    private final Logger logger = LoggerFactory.getLogger(StringHandler.class);

    @Override
    public void doHandle(String key) {
        String value = sourceCommands.get(key);
        targetCommands.set(key, value);
    }
}
